<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="index.css" />
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script src="index.js" type="text/javascript" charset="utf-8"></script>
  </head>
  <body>
    <div id="name">
      <div id="productImagesPreview" class="img-list"></div>
      <div class="upload" id="productUploadButton">
        <input type="file" class="file-input" />
        <button type="button" class="upload-box">
          &#xea20;
        </button>
      </div>
      <!-- 隐藏域的input -->
      <input type="text" id="fileInputID" value="" />
    </div>
    <script type="text/javascript">
      $(function(){
        $("#name").upload({
          id: "name",
          singleFileNumber: 3,
          style: 1,
          filetype: 'png'
        })
      })
    </script>
  </body>
</html>
